home *** CD-ROM | disk | FTP | other *** search
- Path: news.mathworks.com!gatech!gt-news!james
- From: james@amber.biology.gatech.edu (James McIninch)
- Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++,comp.edu
- Subject: Re: ANSI C and POSIX (was Re: C/C++ knocks the crap out of Ada)
- Date: 8 Apr 1996 18:16:18 GMT
- Organization: Georgia Institute of Technology
- Message-ID: <4kbl5i$p3@mordred.gatech.edu>
- References: <JSA.96Feb16135027@organon.com> <dewar.828757752@schonberg> <danpop.828819479@rscernix> <dewar.828879781@schonberg> <4k9qhe$65r@solutions.solon.com> <dewar.828936837@schonberg> <828964950snz@genesis.demon.co.uk> <4kbfup$2vd@news1.mnsinc.com>
- NNTP-Posting-Host: exon.biology.gatech.edu
- X-Newsreader: TIN [version 1.2 PL2]
-
- Szu-Wen Huang (huang@mnsinc.com) wrote:
- : Lawrence Kirby (fred@genesis.demon.co.uk) wrote:
- : : In article <dewar.828936837@schonberg> dewar@cs.nyu.edu "Robert Dewar" writes:
-
- : : >Boy, this sure has wandered! THe original issue was the semantic behavior
- : : >of read. Unlike other unices, in Linux, the bounds check for the read
- : : >buffer is based on the requested count, rather than the actual count
- : : >of data bytes read. It is hard to say either approach is right or
- : : >wrong, but they are different enough to cause portability problems.
-
- : : Both approaches meet the relevant standards and are correct. Only broken
- : : code has portability problems, but that's nothing new.
-
- : Shouldn't true portability mean that even bugs are cross-platform and
- : fail reliably? ;)
-
-
- No. When it says "undefined", it means "undefined". There's no way to make
- undefined behavior portable, that's why it's undefined.
-
-